<?php

class HSession extends CModel {

	/**
	 * Username.
	 * 
	 * @var HUser user
	 * @soap
	 */
	public $user;

	/**
	 * Session id.
	 * 
	 * @var string session_id
	 * @soap
	 */
	public $session_id;
	
	/**
	 * Session id.
	 * 
	 * @var string session_name
	 * @soap
	 */
	public $session_name;
	
	/**
	 * List of all user roles.
	 * 
	 * @var string[] $roles
	 * @soap
	 */
	public $roles;
	
	public function attributeNames() {
		return array('user', 'session_id', 'session_name', 'roles');
	}
	
	public function __toString() {
		return "HSession [user=" . $this->user . 
				", session_id=" . $this->session_id . 
				", session_name=" . $this->session_name .
				", roles=[" . implode(",", $this->roles != null && is_array($this->roles) ? $this->roles : "") . "]" .
				"]";
	}
	
	
	
}